#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int x, i, s1[10], j, n;
	while (scanf("%d\n", &x) != EOF)
	{
		for (i = 0; i < x; i++)
		{
			scanf("%d", &s1[i]);
		}
		for (n = 0; n < x; n++)
		{
			for (j = 1; j <= s1[n]; j++)
			{
				printf("*");
			}
			printf("\n");
		}

	}
	
	

	return 0;
}